<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="redis" uri="http://www.shopjsp.com/redisTag/functions" %>
<c:set var="basePath" value="${redis:getSysConfig('base_path_back')}"/>
<c:set var="srcPath" value="${redis:getSysConfig('sysFileVisitRoot_back')}"/>
<c:set var="uploadPath" value="${redis:getSysConfig('uploadFileVisitRoot')}"/>
<script type="text/javascript">
    /**
     * 查看粉丝视频消息信息详情
     */
    function detailImageInfo(id,wxName) {
        $.ajax({
            type: "POST",
            dataType: "JSON",
            url: "${basePath}/back/wx/fansMessage/video/getVideoObject.sjson",
            data: {videoMessageInfoId: id,wxName:wxName},
            success: function (result) {
                var data = JSON.parse(result.data);
                /**重置详情页中所有html展示信息**/
                resetDetailTable("detailTable");
				/**设置展示信息**/
                $("#d_wxName").html(data.wxName);
                $("#d_publicNumberName").html(data.wxVideoMessageInfo.publicNumberName);
                $("#d_msgId").html(data.wxVideoMessageInfo.msgId);
                $("#d_mediaId").html(data.wxVideoMessageInfo.mediaId);
                $("#d_thumbMediaId").html(data.wxVideoMessageInfo.thumbMediaId);
                if(data.wxVideoMessageInfo.createTime!='' && data.wxVideoMessageInfo.createTime != undefined){
                    $("#d_createTime").html(new Date(data.wxVideoMessageInfo.createTime).Format("yyyy-MM-dd hh:mm:ss"));
                }
                if(data.wxVideoMessageInfo.replyFlag=="0"){
                    $("#d_replyFlag").html("<font class='color_002'>否</font>");
                }else{
                    $("#d_replyFlag").html("<font class='color_001'>是</font>");
                }
                /*if(data.wxVideoMessageInfo.collectFlag=="0"){
                    $("#d_collectFlag").html("<font class='color_002'>否</font>");
                }else{
                    $("#d_collectFlag").html("<font class='color_001'>是</font>");
                }*/
                if(data.wxVideoMessageInfo.replyFlagTime!='' && data.wxVideoMessageInfo.replyFlagTime!=undefined){
                    $("#d_replyFlagTime").html(new Date(data.wxVideoMessageInfo.replyFlagTime).Format("yyyy-MM-dd hh:mm:ss"));
                }
                var hv="<video src='${uploadPath}/"+data.wxVideoMessageInfo.videoUrl+"'  width='400' height='225' controls autobuffer></video>";
                $("#hv").html(hv);
            }
        });
    }
</script>
<div class="modal fade" id="detailModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog" style="width:70%">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				<h5 class="modal-title" id="myModalLabel">粉丝视频消息信息详情</h5>
			</div>
			<div class="modal-body">
			<table id="detailTable" align="center" class="addOrEditTable table table-bordered" width="100%;">
				<tr>
					<td class="toright_td" width="150px">播放视频:&nbsp;&nbsp;</td>
					<td>
						<div style="width:400px;height:255px; ">
							&nbsp;&nbsp;<span id="hv"></span>
						</div>
					</td>
				</tr>
				<tr>
					<td class="toright_td" width="150px">公众号名称:</td><td class="toleft_td">&nbsp;&nbsp;<span id="d_publicNumberName"></span></td>
				</tr>
				<tr>
					<td class="toright_td" width="150px">粉丝会员名:</td><td class="toleft_td">&nbsp;&nbsp;<span id="d_wxName"></span></td>
				</tr>
				<tr>
					<td class="toright_td" width="150px">消息ID:</td><td class="toleft_td">&nbsp;&nbsp;<span id="d_msgId"></span></td>
				</tr>
				<tr>
					<td class="toright_td" width="150px">消息媒体ID:</td><td class="toleft_td">&nbsp;&nbsp;<span id="d_mediaId"></span></td>
				</tr>
				<tr>
					<td class="toright_td" width="150px">缩略图媒体ID:</td><td class="toleft_td">&nbsp;&nbsp;<span id="d_thumbMediaId"></span></td>
				</tr>
				<tr>
					<td class="toright_td" width="150px">是否回复:</td><td class="toleft_td">&nbsp;&nbsp;<span id="d_replyFlag"></span></td>
				</tr>
				<%--<tr>
					<td class="toright_td" width="150px">是否收藏:</td><td  class="toleft_td">&nbsp;&nbsp;<span id="d_collectFlag"></span></td>
				</tr>--%>
				<tr>
					<td class="toright_td" width="150px">创建时间:</td><td  class="toleft_td">&nbsp;&nbsp;<span id="d_createTime"></span></td>
				</tr>
				<tr>
					<td class="toright_td" width="100px">回复时间:</td><td  class="toleft_td">&nbsp;&nbsp;<span id="d_replyFlagTime"></span></td>
				</tr>
			</table>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
			</div>
		</div>
	</div>
</div>